/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package entities;

import java.io.Serializable;
import java.math.BigDecimal;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

/**
 *
 * @author Juanan
 */
@Entity
@Table(name = "v_topology")
@NamedQueries(
{
    @NamedQuery(name = "VTopology.findAll", query = "SELECT v FROM VTopology v")
})
public class VTopology implements Serializable
{
    private static final long serialVersionUID = 1L;
    @Basic(optional = false)
    @Column(name = "NOD_ID1")
    private int nodId1;
    @Column(name = "NOD_CODE1")
    private String nodCode1;
    // @Max(value=?)  @Min(value=?)//if you know range of your decimal fields consider using these annotations to enforce field validation
    @Column(name = "NOD_X1")
    private BigDecimal nodX1;
    @Column(name = "NOD_Y1")
    private BigDecimal nodY1;
    @Column(name = "NOD_Z1")
    private BigDecimal nodZ1;
    @Basic(optional = false)
    @Column(name = "NOD_ID2")
    private int nodId2;
    @Column(name = "NOD_CODE2")
    private String nodCode2;
    @Column(name = "NOD_X2")
    private BigDecimal nodX2;
    @Column(name = "NOD_Y2")
    private BigDecimal nodY2;
    @Column(name = "NOD_Z2")
    private BigDecimal nodZ2;
    @Basic(optional = false)
    @Column(name = "NOD_ID_GROUP")
    private int nodIdGroup;
    @Column(name = "TOP_CODE")
    private String topCode;
    @Column(name = "TOP_ORDER")
    private Long topOrder;

    public VTopology()
    {
    }

    public int getNodId1()
    {
        return nodId1;
    }

    public void setNodId1(int nodId1)
    {
        this.nodId1 = nodId1;
    }

    public String getNodCode1()
    {
        return nodCode1;
    }

    public void setNodCode1(String nodCode1)
    {
        this.nodCode1 = nodCode1;
    }

    public BigDecimal getNodX1()
    {
        return nodX1;
    }

    public void setNodX1(BigDecimal nodX1)
    {
        this.nodX1 = nodX1;
    }

    public BigDecimal getNodY1()
    {
        return nodY1;
    }

    public void setNodY1(BigDecimal nodY1)
    {
        this.nodY1 = nodY1;
    }

    public BigDecimal getNodZ1()
    {
        return nodZ1;
    }

    public void setNodZ1(BigDecimal nodZ1)
    {
        this.nodZ1 = nodZ1;
    }

    public int getNodId2()
    {
        return nodId2;
    }

    public void setNodId2(int nodId2)
    {
        this.nodId2 = nodId2;
    }

    public String getNodCode2()
    {
        return nodCode2;
    }

    public void setNodCode2(String nodCode2)
    {
        this.nodCode2 = nodCode2;
    }

    public BigDecimal getNodX2()
    {
        return nodX2;
    }

    public void setNodX2(BigDecimal nodX2)
    {
        this.nodX2 = nodX2;
    }

    public BigDecimal getNodY2()
    {
        return nodY2;
    }

    public void setNodY2(BigDecimal nodY2)
    {
        this.nodY2 = nodY2;
    }

    public BigDecimal getNodZ2()
    {
        return nodZ2;
    }

    public void setNodZ2(BigDecimal nodZ2)
    {
        this.nodZ2 = nodZ2;
    }

    public int getNodIdGroup()
    {
        return nodIdGroup;
    }

    public void setNodIdGroup(int nodIdGroup)
    {
        this.nodIdGroup = nodIdGroup;
    }

    public String getTopCode()
    {
        return topCode;
    }

    public void setTopCode(String topCode)
    {
        this.topCode = topCode;
    }

    public Long getTopOrder()
    {
        return topOrder;
    }

    public void setTopOrder(Long topOrder)
    {
        this.topOrder = topOrder;
    }
    
}
